<?php
namespace menghe\model;

class Model{
    public function __call($name, $arguments)
    {
        // TODO: Implement __call() method.
        return self::runParse($name,$arguments);
    }
    public static function __callStatic($name,$arguments){
        //2
        return self::runParse($name,$arguments);
    }
    public static function runParse($name,$arguments){
        //3
//        p($name); query
        $class = get_called_class();
//        p($class);获取表名字
        return call_user_func_array([new Base($class),$name],$arguments);
    }
}